Optimal. Leaf size=335 \[ -\frac{\text{PolyLog}\left (2,\frac{2 \left (-e \left (b-\sqrt{b^2-4 a c}\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (-e \sqrt{b^2-4 a c}+b e-2 c d+2 c\right )}+1\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{PolyLog}\left (2,\frac{2 \left (-e \left (\sqrt{b^2-4 a c}+b\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (e \left (\sqrt{b^2-4 a c}+b\right )+2 c (1-d)\right )}+1\right )}{2 \sqrt{b^2-4 a c}}+\frac{\tanh ^{-1}(d+e x) \log \left (\frac{2 e \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (b-\sqrt{b^2-4 a c}\right )+2 c (1-d)\right )}\right )}{\sqrt{b^2-4 a c}}-\frac{\tanh ^{-1}(d+e x) \log \left (\frac{2 e \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (\sqrt{b^2-4 a c}+b\right )+2 c (1-d)\right )}\right )}{\sqrt{b^2-4 a c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.720952, antiderivative size = 335, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.421, Rules used = {618, 206, 6728, 6111, 5920, 2402, 2315, 2447} \[ -\frac{\text{PolyLog}\left (2,\frac{2 \left (-e \left (b-\sqrt{b^2-4 a c}\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (-e \sqrt{b^2-4 a c}+b e-2 c d+2 c\right )}+1\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{PolyLog}\left (2,\frac{2 \left (-e \left (\sqrt{b^2-4 a c}+b\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (e \left (\sqrt{b^2-4 a c}+b\right )+2 c (1-d)\right )}+1\right )}{2 \sqrt{b^2-4 a c}}+\frac{\tanh ^{-1}(d+e x) \log \left (\frac{2 e \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (b-\sqrt{b^2-4 a c}\right )+2 c (1-d)\right )}\right )}{\sqrt{b^2-4 a c}}-\frac{\tanh ^{-1}(d+e x) \log \left (\frac{2 e \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (\sqrt{b^2-4 a c}+b\right )+2 c (1-d)\right )}\right )}{\sqrt{b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 618
Rule 206
Rule 6728
Rule 6111
Rule 5920
Rule 2402
Rule 2315
Rule 2447
Rubi steps
\begin{align*} \int \frac{\tanh ^{-1}(d+e x)}{a+b x+c x^2} \, dx &=\int \left (\frac{2 c \tanh ^{-1}(d+e x)}{\sqrt{b^2-4 a c} \left (b-\sqrt{b^2-4 a c}+2 c x\right )}-\frac{2 c \tanh ^{-1}(d+e x)}{\sqrt{b^2-4 a c} \left (b+\sqrt{b^2-4 a c}+2 c x\right )}\right ) \, dx\\ &=\frac{(2 c) \int \frac{\tanh ^{-1}(d+e x)}{b-\sqrt{b^2-4 a c}+2 c x} \, dx}{\sqrt{b^2-4 a c}}-\frac{(2 c) \int \frac{\tanh ^{-1}(d+e x)}{b+\sqrt{b^2-4 a c}+2 c x} \, dx}{\sqrt{b^2-4 a c}}\\ &=\frac{(2 c) \operatorname{Subst}\left (\int \frac{\tanh ^{-1}(x)}{\frac{-2 c d+\left (b-\sqrt{b^2-4 a c}\right ) e}{e}+\frac{2 c x}{e}} \, dx,x,d+e x\right )}{\sqrt{b^2-4 a c} e}-\frac{(2 c) \operatorname{Subst}\left (\int \frac{\tanh ^{-1}(x)}{\frac{-2 c d+\left (b+\sqrt{b^2-4 a c}\right ) e}{e}+\frac{2 c x}{e}} \, dx,x,d+e x\right )}{\sqrt{b^2-4 a c} e}\\ &=\frac{\tanh ^{-1}(d+e x) \log \left (\frac{2 e \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt{b^2-4 a c} e\right ) (1+d+e x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\tanh ^{-1}(d+e x) \log \left (\frac{2 e \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt{b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\operatorname{Subst}\left (\int \frac{\log \left (\frac{2 \left (\frac{-2 c d+\left (b-\sqrt{b^2-4 a c}\right ) e}{e}+\frac{2 c x}{e}\right )}{\left (\frac{2 c}{e}+\frac{-2 c d+\left (b-\sqrt{b^2-4 a c}\right ) e}{e}\right ) (1+x)}\right )}{1-x^2} \, dx,x,d+e x\right )}{\sqrt{b^2-4 a c}}+\frac{\operatorname{Subst}\left (\int \frac{\log \left (\frac{2 \left (\frac{-2 c d+\left (b+\sqrt{b^2-4 a c}\right ) e}{e}+\frac{2 c x}{e}\right )}{\left (\frac{2 c}{e}+\frac{-2 c d+\left (b+\sqrt{b^2-4 a c}\right ) e}{e}\right ) (1+x)}\right )}{1-x^2} \, dx,x,d+e x\right )}{\sqrt{b^2-4 a c}}\\ &=\frac{\tanh ^{-1}(d+e x) \log \left (\frac{2 e \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt{b^2-4 a c} e\right ) (1+d+e x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\tanh ^{-1}(d+e x) \log \left (\frac{2 e \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt{b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\text{Li}_2\left (1-\frac{2 e \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt{b^2-4 a c} e\right ) (1+d+e x)}\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{Li}_2\left (1-\frac{2 e \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt{b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{2 \sqrt{b^2-4 a c}}\\ \end{align*}
Mathematica [A] time = 0.539944, size = 403, normalized size = 1.2 \[ \frac{-\text{PolyLog}\left (2,\frac{2 c (d+e x-1)}{e \left (\sqrt{b^2-4 a c}-b\right )+2 c (d-1)}\right )+\text{PolyLog}\left (2,\frac{2 c (d+e x-1)}{2 c (d-1)-e \left (\sqrt{b^2-4 a c}+b\right )}\right )+\text{PolyLog}\left (2,\frac{2 c (d+e x+1)}{e \left (\sqrt{b^2-4 a c}-b\right )+2 c (d+1)}\right )-\text{PolyLog}\left (2,\frac{2 c (d+e x+1)}{2 c (d+1)-e \left (\sqrt{b^2-4 a c}+b\right )}\right )+\log (-d-e x+1) \left (-\log \left (\frac{e \left (\sqrt{b^2-4 a c}-b-2 c x\right )}{e \left (\sqrt{b^2-4 a c}-b\right )+2 c (d-1)}\right )\right )+\log (-d-e x+1) \log \left (\frac{e \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{e \left (\sqrt{b^2-4 a c}+b\right )-2 c (d-1)}\right )+\log (d+e x+1) \log \left (\frac{e \left (\sqrt{b^2-4 a c}-b-2 c x\right )}{e \left (\sqrt{b^2-4 a c}-b\right )+2 c (d+1)}\right )-\log (d+e x+1) \log \left (\frac{e \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{e \left (\sqrt{b^2-4 a c}+b\right )-2 c (d+1)}\right )}{2 \sqrt{b^2-4 a c}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.622, size = 2140, normalized size = 6.4 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\operatorname{artanh}\left (e x + d\right )}{c x^{2} + b x + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{artanh}\left (e x + d\right )}{c x^{2} + b x + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]